package com.jojo.jojomall.search.vo;

import com.jojo.common.to.es.skuEsModel;
import lombok.Data;

import java.util.List;

/**
 * @Author: 魔法少女小夫
 * @Data: 2022/5/17
 * @Version:
 * @Description:
 */
@Data
public class SearchResult {
    private List<skuEsModel> products;
//    以下是分页信息；
    private Integer pageNum;
    private  Long total;
    private Integer totalPages;
     private List<BrandVo> brands;

     private List<AttrVo> attrs;
     private List<CatalogVo> catalogs;
//以上是返回个页面的所有信息；

    @Data
    public static class CatalogVo{

        private Long catalogId;
        private String catalogName;
    }
    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }
    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
